# eric7.QScintilla.Editor

Module implementing the editor component of the eric IDE.

### Global Attributes

EditorAutoCompletionListID
ReferenceItem
ReferencesListID
TemplateCompletionListID

### Classes

Editor | Class implementing the editor component of the eric IDE.
EditorIconId | Class defining the completion icon IDs.
EditorWarningKind | Class defining the kind of warnings supported by the Editor class.

### Functions

None

## Editor

Class implementing the editor component of the eric IDE.

### Signals

autoCompletionAPIsAvailable(bool)
  emitted after the autocompletion function has been configured
bookmarkToggled(QsciScintillaCompat)
  emitted when a bookmark is toggled
breakpointToggled(QsciScintillaCompat)
  emitted when a breakpoint is toggled
captionChanged(str, QsciScintillaCompat)
  emitted when the caption is updated. Typically due to a readOnly attribute change.
changeMarkersUpdated(QsciScintillaCompat)
  emitted when the change markers were updated
coverageMarkersShown(bool)
  emitted after the coverage markers have been shown or cleared
cursorChanged(str, int, int)
  emitted when the cursor position was changed
cursorLineChanged(int)
  emitted when the cursor line was changed
editorAboutToBeSaved(str)
  emitted before the editor is saved
editorRenamed(str)
  emitted after the editor got a new name (i.e. after a 'Save As')
editorSaved(str)
  emitted after the editor has been saved
encodingChanged(str)
  emitted when the editors encoding was set. The encoding name is passed as a parameter.
eolChanged(str)
  emitted when the editors eol type was set. The eol string is passed as a parameter.
languageChanged(str)
  emitted when the editors language was set. The language is passed as a parameter.
lastEditPositionAvailable()
  emitted when a last edit position is available
modificationStatusChanged(bool, QsciScintillaCompat)
  emitted when the modification status has changed
mouseDoubleClick(position, buttons)
  emitted to signal a mouse double click somewhere in the editor area
redoAvailable(bool)
  emitted to signal the redo availability
refreshed()
  emitted to signal a refresh of the editor contents
settingsRead()
  emitted to signal, that the settings have been read and set
showMenu(str, QMenu, QsciScintillaCompat)
  emitted when a menu is about to be shown. The name of the menu, a reference to the menu and a reference to the editor are given.
spellLanguageChanged(str)
  emitted when the editor spell check language was set. The language is passed as a parameter.
syntaxerrorToggled(QsciScintillaCompat)
  emitted when a syntax error was discovered
taskMarkersUpdated(QsciScintillaCompat)
  emitted when the task markers were updated
undoAvailable(bool)
  emitted to signal the undo availability

### Derived from

QsciScintillaCompat

### Class Attributes

EncloseChars
VcsConflictMarkerLineRegExpList

### Class Methods

None

### Methods

Editor | Constructor
__aboutToShowContextMenu | Private slot handling the aboutToShow signal of the context menu.
__addBreakPoint | Private method to add a new breakpoint.
__addBreakPoints | Private slot to add breakpoints.
__addFileAliasResource | Private method to handle the Add aliased file context menu action.
__addFileResource | Private method to handle the Add file context menu action.
__addFileResources | Private method to handle the Add files context menu action.
__addLocalizedResource | Private method to handle the Add localized resource context menu action.
__addResourceFrame | Private method to handle the Add resource frame context menu action.
__addToSpellingDictionary | Private slot to add the word below the spelling context menu to the dictionary.
__adjustedCallTipPosition | Private method to calculate an adjusted position for showing calltips.
__applyTemplate | Private method to apply a template by name.
__autoComplete | Private method to start auto-completion via plug-ins.
__autocompletionCancelled | Private slot to handle the cancellation of an auto-completion list.
__autosave | Private slot to save the contents of the editor automatically.
__autosaveEnable | Private slot handling the autosave enable context menu action.
__bindCompleter | Private method to set the correct typing completer depending on language.
__bindLexer | Private method to set the correct lexer depending on language.
__bindName | Private method to generate a dummy filename for binding a lexer.
__boxCommentLine | Private slot to box comment the current line.
__boxCommentSelection | Private slot to box comment the current selection.
__breakPointDataAboutToBeChanged | Private slot to handle the dataAboutToBeChanged signal of the breakpoint model.
__callTip | Private method to show call tips provided by a plugin.
__cancelMouseHoverHelp | Private slot cancelling the display of mouse hover help.
__changeBreakPoints | Private slot to set changed breakpoints.
__charAdded | Private slot called to handle the user entering a character.
__checkEncoding | Private method to check the selected encoding of the encodings submenu.
__checkEol | Private method to check the selected eol type of the eol submenu.
__checkLanguage | Private method to check the selected language of the language submenu.
__checkSpellLanguage | Private slot to check the selected spell check language action.
__checkSpellingSelection | Private slot to spell check the current selection.
__checkSpellingWord | Private slot to check the word below the spelling context menu.
__clearBreakpoints | Private method to clear all breakpoints.
__clearCompletionsCache | Private method to clear the auto-completions cache.
__clearTypedWarning | Private method to clear warnings of a specific kind.
__codeCoverageHideAnnotations | Private method to handle the hide code coverage annotations context menu action.
__commentLine | Private slot to comment the current line.
__commentSelection | Private slot to comment the current selection.
__completionListSelected | Private slot to handle the selection from the completion list.
__contextClose | Private slot handling the close context menu entry.
__contextMenuCollapseFoldWithChildren | Private slot to handle the context menu collapse with children action.
__contextMenuExpandFoldWithChildren | Private slot to handle the context menu expand with children action.
__contextMenuSpellingTriggered | Private slot to handle the selection of a suggestion of the spelling context menu.
__contextSave | Private slot handling the save context menu entry.
__contextSaveAs | Private slot handling the save as context menu entry.
__contextSaveAsRemote | Private slot handling the save as (remote) context menu entry.
__contextSaveCopy | Private slot handling the save copy context menu entry.
__convertTabs | Private slot to automatically convert tabulators to spaces upon loading.
__createChangeMarkerPixmap | Private method to create a pixmap for the change markers.
__cursorPositionChanged | Private slot to handle the cursorPositionChanged signal.
__delayedDocstringMenuPopup | Private method to test, if the user might want to insert a docstring.
__deleteAllChangeMarkers | Private slot to delete all change markers.
__deleteBreakPoints | Private slot to delete breakpoints.
__deselectAll | Private slot handling the deselect all context menu action.
__encodingChanged | Private slot to handle a change of the encoding.
__encodingsMenuTriggered | Private method to handle the selection of an encoding.
__eolChanged | Private slot to handle a change of the eol mode.
__eolMenuTriggered | Private method to handle the selection of an eol type.
__executeSelection | Private slot to execute the selected text in the shell window.
__getAcText | Private method to get the text from cursor position for autocompleting.
__getCharacter | Private method to get the character to the left of the current position in the current line.
__getCodeCoverageFile | Private method to get the file name of the file containing coverage info.
__getEditorConfig | Private method to get the requested option via EditorConfig.
__getMacroName | Private method to select a macro name from the list of macros.
__getOverrideValue | Private method to get an override value for the current file type.
__getSaveFileName | Private method to get the name of the file to be saved.
__ignoreSpellingAlways | Private to always ignore the word below the spelling context menu.
__indentLine | Private method to indent or unindent the current line.
__indentSelection | Private method to indent or unindent the current selection.
__initContextMenu | Private method used to setup the context menu.
__initContextMenuAutocompletion | Private method used to setup the Checks context sub menu.
__initContextMenuChecks | Private method used to setup the Checks context sub menu.
__initContextMenuEncodings | Private method used to setup the Encodings context sub menu.
__initContextMenuEol | Private method to setup the eol context sub menu.
__initContextMenuFormatting | Private method used to setup the Code Formatting context sub menu.
__initContextMenuGraphics | Private method used to setup the diagrams context sub menu.
__initContextMenuLanguages | Private method used to setup the Languages context sub menu.
__initContextMenuMargins | Private method used to setup the context menu for the margins.
__initContextMenuReopenWithEncoding | Private method used to setup the Reopen With Encoding context sub menu.
__initContextMenuResources | Private method used to setup the Resources context sub menu.
__initContextMenuShow | Private method used to setup the Show context sub menu.
__initContextMenuSpellCheck | Private method used to setup the spell checking context sub menu.
__initContextMenuSpellLanguages | Private method to setup the spell checking languages context sub menu.
__initContextMenuTools | Private method used to setup the Tools context sub menu.
__initOnlineChangeTrace | Private slot to initialize the online change trace.
__initOnlineSyntaxCheck | Private slot to initialize the online syntax check.
__insertDocstring | Private slot to generate and insert a docstring for the function under the cursor.
__isCommentedLine | Private method to check, if the given line is a comment line as produced by the configured comment rules.
__isStartChar | Private method to check, if a character is an autocompletion start character.
__isStreamCommentedLine | Private method to check, if the line is commented by a stream comment.
__languageChanged | Private method handling a change of a connected editor's language.
__languageMenuTriggered | Private method to handle the selection of a lexer language.
__lmBbookmarks | Private method to handle the 'LMB toggles bookmark' context menu action.
__lmBbreakpoints | Private method to handle the 'LMB toggles breakpoint' context menu action.
__loadDiagram | Private slot to load a diagram from file.
__loadEditorConfig | Private method to load the EditorConfig properties.
__loadEditorConfigObject | Private method to load the EditorConfig properties for the given file name.
__marginClicked | Private slot to handle the marginClicked signal.
__marginHoverEnd | Private slot cancelling the display of syntax error or a warning marker text.
__marginHoverStart | Private slot showing the text of a syntax error or a warning marker.
__marginNumber | Private method to calculate the margin number based on a x position.
__markOccurrences | Private method to mark all occurrences of the current word.
__menuClearBreakpoints | Private slot to handle the 'Clear all breakpoints' context menu action.
__menuToggleBreakpointEnabled | Private slot to handle the 'Enable/Disable breakpoint' context menu action.
__menuToggleTemporaryBreakpoint | Private slot to handle the 'Toggle temporary breakpoint' context menu action.
__modificationChanged | Private slot to handle the modificationChanged signal.
__modificationReadOnly | Private slot to handle the modificationAttempted signal.
__modified | Private method to handle changes of the number of lines.
__newView | Private slot to create a new view to an open document.
__newViewNewSplit | Private slot to create a new view to an open document.
__normalizedEncoding | Private method to calculate the normalized encoding string.
__onlineChangeTraceTimerTimeout | Private slot to mark added and changed lines.
__performFormatWithBlack | Private method to format the source code using the 'Black' tool.
__performImportSortingWithIsort | Private method to sort the import statements using the 'isort' tool.
__popupDocstringMenu | Private method to pop up a menu asking the user, if a docstring should be inserted.
__printPreview | Private slot to generate a print preview.
__processFlags | Private method to extract flags and process them.
__processSyntaxCheckError | Private slot to report an error message of a syntax check.
__processSyntaxCheckResult | Private slot to report the resulting messages of a syntax check.
__projectPropertiesChanged | Private slot to handle changes of the project properties.
__refreshAnnotations | Private method to refresh the annotations.
__registerImages | Private method to register images for autocompletion lists.
__reinitOnlineChangeTrace | Private slot to re-initialize the online change trace.
__removeFromSpellingDictionary | Private slot to remove the word below the context menu to the dictionary.
__removeTrailingWhitespace | Private method to remove trailing whitespace.
__reopenWithEncodingMenuTriggered | Private method to handle the rereading of the file with a selected encoding.
__replaceLeadingUnderscores | Private method to replace the first two underlines for invers sorting.
__resetLanguage | Private method used to reset the language selection.
__resetOnlineChangeTraceTimer | Private method to reset the online syntax check timer.
__resetOnlineSyntaxCheckTimer | Private method to reset the online syntax check timer.
__resizeLinenoMargin | Private slot to resize the line numbers margin.
__restoreBreakpoints | Private method to restore the breakpoints.
__saveDeviceFile | Private method to save the text to a file on the connected device.
__saveLastEditPosition | Private slot to record the last edit position.
__searchCurrentWord | Private slot to search the next occurrence of the current word.
__selectAll | Private slot handling the select all context menu action.
__selectPygmentsLexer | Private method to select a specific pygments lexer.
__setAnnotation | Private method to set the annotations for the given line.
__setAnnotationStyles | Private slot to define the style used by inline annotations.
__setAutoCompletion | Private method to configure the autocompletion function.
__setCallTips | Private method to configure the calltips function.
__setEolMode | Private method to configure the eol mode of the editor.
__setLineMarkerColours | Private method to set the line marker colours.
__setMarginsDisplay | Private method to configure margins 0 and 2.
__setSpelling | Private method to initialize the spell checking functionality.
__setSpellingLanguage | Private method to set the spell checking language.
__setTabAndIndent | Private method to set indentation size and style and tab width.
__setTextDisplay | Private method to configure the text display.
__shouldAutosave | Private method to check the autosave flags.
__showApplicationDiagram | Private method to handle the Imports Diagram context menu action.
__showClassDiagram | Private method to handle the Class Diagram context menu action.
__showCodeCoverage | Private method to handle the code coverage context menu action.
__showCodeInfo | Private slot to handle the context menu action to show code info.
__showCodeMetrics | Private method to handle the code metrics context menu action.
__showCompletionsList | Private method to show the completions list.
__showContextMenu | Private slot to show a context menu.
__showContextMenuAutocompletion | Private slot called before the autocompletion menu is shown.
__showContextMenuChecks | Private slot handling the aboutToShow signal of the checks context menu.
__showContextMenuEncodings | Private slot handling the aboutToShow signal of the encodings context menu.
__showContextMenuEol | Private slot handling the aboutToShow signal of the eol context menu.
__showContextMenuFormatting | Private slot handling the aboutToShow signal of the code formatting context menu.
__showContextMenuGraphics | Private slot handling the aboutToShow signal of the diagrams context menu.
__showContextMenuLanguages | Private slot handling the aboutToShow signal of the languages context menu.
__showContextMenuMargin | Private slot handling the aboutToShow signal of the margins context menu.
__showContextMenuResources | Private slot handling the aboutToShow signal of the resources context menu.
__showContextMenuShow | Private slot called before the show menu is shown.
__showContextMenuSpellCheck | Private slot handling the aboutToShow signal of the spell check context menu.
__showContextMenuSpellLanguages | Private slot handling the aboutToShow signal of the spell check languages context menu.
__showContextMenuSpelling | Private slot to set up the spelling menu before it is shown.
__showContextMenuTools | Private slot handling the aboutToShow signal of the tools context menu.
__showImportsDiagram | Private method to handle the Imports Diagram context menu action.
__showMouseHoverHelp | Private slot showing code information about the symbol under the cursor.
__showPackageDiagram | Private method to handle the Package Diagram context menu action.
__showProfileData | Private method to handle the show profile data context menu action.
__showSyntaxError | Private slot to handle the 'Show syntax error message' context menu action.
__showWarning | Private slot to handle the 'Show warning' context menu action.
__spellCharAdded | Private slot called to handle the user entering a character.
__spellLanguageChanged | Private slot to handle a change of the spell check language.
__spellLanguagesMenuTriggered | Private method to handle the selection of a spell check language.
__streamCommentLine | Private slot to stream comment the current line.
__streamCommentSelection | Private slot to comment the current selection.
__streamUncommentLine | Private slot to stream uncomment the current line.
__streamUncommentSelection | Private slot to stream uncomment the current selection.
__styleNeeded | Private slot to handle the need for more styling.
__textChanged | Private slot to handle a change of the editor text.
__toggleAutoCompletionEnable | Private slot to handle the Enable Autocompletion context menu entry.
__toggleBlockComment | Private slot to toggle the comment of a block.
__toggleBreakpoint | Private method to toggle a breakpoint.
__toggleBreakpointEnabled | Private method to toggle a breakpoints enabled status.
__toggleStreamComment | Private slot to toggle the comment of a block.
__toggleTypingAids | Private slot to toggle the typing aids.
__uncommentLine | Private slot to uncomment the current line.
__uncommentSelection | Private slot to uncomment the current selection.
addCallTipHook | Public method to set a calltip provider.
addClone | Public method to add a clone to our list.
addCompletionListHook | Public method to set an auto-completion list provider.
addedToProject | Public method to signal, that this editor has been added to a project.
autoComplete | Public method to start auto-completion.
autoCompleteQScintilla | Public method to perform an autocompletion using QScintilla methods.
boxCommentLineOrSelection | Public slot to box comment the current line or current selection.
callTip | Public method to show calltips.
canAutoCompleteFromAPIs | Public method to check for API availablity.
canProvideCallTipps | Public method to test the calltips availability.
canProvideDynamicAutoCompletion | Public method to test the dynamic auto-completion availability.
changeEvent | Protected method called to process an event.
checkDirty | Public method to check dirty status and open a message window.
checkModificationTime | Public method to check, if the modification time of the file is different from the recorded one.
checkReadOnly | Public method to check the 'read only' state.
checkReloadFile | Public slot to check, if the file needs to be reloaded.
checkSpelling | Public slot to perform an interactive spell check of the document.
checkSyntax | Public method to perform an automatic syntax check of the file.
clearAllHighlights | Public method to clear all highlights.
clearBookmarks | Public slot to handle the 'Clear all bookmarks' context menu action.
clearBreakpoint | Public method to clear a breakpoint.
clearChangeMarkers | Public method to clear all change markers.
clearCodeWarnings | Public slot to clear all code warnings.
clearErrorWarnings | Public slot to clear all error warnings.
clearFlakesWarnings | Public slot to clear all pyflakes warnings.
clearHighlight | Public method to clear a text highlight.
clearInfoWarnings | Public slot to clear all info warnings.
clearSearchIndicators | Public method to clear all search indicators.
clearSearchSelectionHighlight | Public method to clear all highlights.
clearStyleWarnings | Public slot to clear all style warnings.
clearStyles | Public method to set the styles according the selected Qt style or the selected editor colours.
clearSyntaxError | Public slot to handle the 'Clear all syntax error' context menu action.
clearWarnings | Public slot to clear all warnings.
close | Public method called when the window gets closed.
closeIt | Public method called by the viewmanager to finally get rid of us.
codeCoverageShowAnnotations | Public method to handle the show code coverage annotations context menu action.
collapseFoldWithChildren | Public method to collapse the current fold including its children.
commentLineOrSelection | Public slot to comment the current line or current selection.
completionsListReady | Public method to show the completions determined by a completions provider.
convertEols | Public method to convert the end-of-line marker.
curLineHasBreakpoint | Public method to check for the presence of a breakpoint at the current line.
determineFileType | Public method to determine the file type using various tests.
dragEnterEvent | Protected method to handle the drag enter event.
dragLeaveEvent | Protected method to handle the drag leave event.
dragMoveEvent | Protected method to handle the drag move event.
dropEvent | Protected method to handle the drop event.
editorCommand | Public method to perform a simple editor command.
encloseSelectedText | Local function to enclose the current selection with some characters.
ensureVisible | Public method to ensure, that the specified line is visible.
ensureVisibleTop | Public method to ensure, that the specified line is visible at the top of the editor.
event | Public method handling events.
expandFoldWithChildren | Public method to expand the current fold including its children.
expandTabs | Public slot to expand tabulators to spaces.
exportFile | Public method to export the file.
extractTasks | Public slot to extract all tasks.
fileRenamed | Public slot to handle the editorRenamed signal.
focusInEvent | Protected method called when the editor receives focus.
focusOutEvent | Protected method called when the editor loses focus.
gestureEvent | Protected method handling gesture events.
getApiLanguage | Public method to get the API language of the editor.
getAssembly | Public method to get a reference to the editor assembly object.
getBookmarkLines | Public method to get the lines containing a bookmark.
getBookmarks | Public method to retrieve the bookmarks.
getBreakpointLines | Public method to get the lines containing a breakpoint.
getCallTipHook | Public method to get the registered calltip provider.
getChangeLines | Public method to get the lines containing a change.
getCompleter | Public method to retrieve a reference to the completer object.
getCompletionListHook | Public method to get the registered completion list provider.
getCoverageLines | Public method to get the lines containing a coverage marker.
getCurrentWord | Public method to get the word at the current position.
getCurrentWordBoundaries | Public method to get the word boundaries at the current position.
getDiffText | Public method to generate a diff between the file on disk and the current text.
getDocstringGenerator | Public method to get a reference to the docstring generator.
getEditorConfig | Public method to get the requested option via EditorConfig.
getEncoding | Public method to return the current encoding.
getFileName | Public method to return the name of the file being displayed.
getFileType | Public method to return the type of the file being displayed.
getFileTypeByFlag | Public method to return the type of the file, if it was set by an eflag: marker.
getHighlightPosition | Public method to return the position of the highlight bar.
getLanguage | Public method to retrieve the language of the editor.
getLexer | Public method to retrieve a reference to the lexer object.
getMenu | Public method to get a reference to the main context menu or a submenu.
getModificationTime | Public method to get the time of the latest (saved) modification.
getMouseClickHandler | Public method to get a registered mouse click handler.
getMouseClickHandlers | Public method to get all registered mouse click handlers of a plug-in.
getNoName | Public method to get the display string for an unnamed editor.
getSearchIndicatorLines | Public method to get the lines containing a search indicator.
getSearchSelectionHighlight | Public method to get the start and end of the selection highlight.
getSearchText | Public method to determine the selection or the current word for the next search operation.
getSharedEditStatus | Public method to get the editor's shared edit status.
getSpellingLanguage | Public method to get the current spelling language.
getSyntaxErrorLines | Public method to get the lines containing a syntax error.
getTaskLines | Public method to get the lines containing a task.
getVcsConflictMarkerLines | Public method to determine the lines containing a VCS conflict marker.
getWarningLines | Public method to get the lines containing a warning.
getWord | Public method to get the word at a position.
getWordBoundaries | Public method to get the word boundaries at a position.
getWordLeft | Public method to get the word to the left of a position.
getWordRight | Public method to get the word to the right of a position.
gotoLastEditPosition | Public method to move the cursor to the last edit position.
gotoLine | Public method to jump to the beginning of a line.
gotoMethodClass | Public method to go to the next Python method or class definition.
gotoReferenceHandler | Public method to handle a list of references to perform a goto.
gotoSyntaxError | Public slot to handle the 'Goto syntax error' context menu action.
handleMonospacedEnable | Public slot to handle the Use Monospaced Font context menu entry.
handleRenamed | Public method to handle the editorRenamed signal.
hasBookmarks | Public method to check for the presence of bookmarks.
hasBreakpoints | Public method to check for the presence of breakpoints.
hasChangeMarkers | Public method to determine, if this editor contains any change markers.
hasCoverageMarkers | Public method to test, if there are coverage markers.
hasMiniMenu | Public method to check the miniMenu flag.
hasSyntaxErrors | Public method to check for the presence of syntax errors.
hasTaskMarkers | Public method to determine, if this editor contains any task markers.
hasWarnings | Public method to check for the presence of warnings.
highlight | Public method to highlight [or de-highlight] a particular line.
highlightSearchSelection | Public method to set a highlight for the selection at the start of a search.
highlightVisible | Public method to make sure that the highlight is visible.
indentLineOrSelection | Public slot to indent the current line or current selection.
insertDocstring | Public method to generate and insert a docstring for the function under the cursor.
isClone | Public method to test, if the given editor is a clone.
isCythonFile | Public method to return a flag indicating a Cython file.
isJavascriptFile | Public method to return a flag indicating a Javascript file.
isLastEditPositionAvailable | Public method to check, if a last edit position is available.
isMicroPythonFile | Public method to return a flag indicating a MicroPython file.
isProjectFile | Public method to check, if the file of the editor belongs to the current project.
isPy3File | Public method to return a flag indicating a Python3 file.
isPyFile | Public method to return a flag indicating a Python (2 or 3) file.
isRubyFile | Public method to return a flag indicating a Ruby file.
isSpellCheckRegion | Public method to check, if the given position is within a region, that should be spell checked.
joinLines | Public slot to join the current line with the next one.
keyPressEvent | Protected method to handle the user input a key at a time.
loadFile | Public method to load the text from a file.
macroDelete | Public method to delete a macro.
macroLoad | Public method to load a macro from a file.
macroRecordingStart | Public method to start macro recording.
macroRecordingStop | Public method to stop macro recording.
macroRun | Public method to execute a macro.
macroSave | Public method to save a macro to a file.
menuEditBreakpoint | Public slot to handle the 'Edit breakpoint' context menu action.
menuNextBreakpoint | Public slot to handle the 'Next breakpoint' context menu action.
menuPreviousBreakpoint | Public slot to handle the 'Previous breakpoint' context menu action.
menuToggleBookmark | Public slot to handle the 'Toggle bookmark' context menu action.
menuToggleBreakpoint | Public slot to handle the 'Toggle breakpoint' context menu action.
mouseDoubleClickEvent | Protected method to handle mouse double click events.
mousePressEvent | Protected method to handle the mouse press event.
mouseReleaseEvent | Protected method calling a registered mouse click handler function.
newBreakpointWithProperties | Public method to set a new breakpoint and its properties.
nextBookmark | Public slot to handle the 'Next bookmark' context menu action.
nextChange | Public slot to handle the 'Next change' context menu action.
nextTask | Public slot to handle the 'Next task' context menu action.
nextUncovered | Public slot to handle the 'Next uncovered' context menu action.
nextWarning | Public slot to handle the 'Next warning' context menu action.
previousBookmark | Public slot to handle the 'Previous bookmark' context menu action.
previousChange | Public slot to handle the 'Previous change' context menu action.
previousTask | Public slot to handle the 'Previous task' context menu action.
previousUncovered | Public slot to handle the 'Previous uncovered' context menu action.
previousWarning | Public slot to handle the 'Previous warning' context menu action.
printFile | Public slot to print the text.
printPreviewFile | Public slot to show a print preview of the text.
projectClosed | Public slot to handle the closing of a project.
projectLexerAssociationsChanged | Public slot to handle changes of the project lexer associations.
projectOpened | Public slot to handle the opening of a project.
readFile | Public method to read the text from a file.
readSettings | Public slot to read the settings into our lexer.
recordModificationTime | Public slot to record the modification time of our file.
redo | Public method to redo the last recorded change.
refresh | Public slot to refresh the editor contents.
refreshCoverageAnnotations | Public method to refresh the code coverage annotations.
registerMouseHoverHelpFunction | Public method to register a mouse hover help function.
reload | Public slot to reload the editor contents checking its modification state first.
removeCallTipHook | Public method to remove a previously registered calltip provider.
removeClone | Public method to remove a clone from our list.
removeCompletionListHook | Public method to remove a previously registered completion list provider.
removeMouseClickHandler | Public method to un-registered a mouse click handler.
removeMouseClickHandlers | Public method to un-registered all mouse click handlers of a plug-in.
resetDocstringGenerator | Public method to reset the current docstring generator.
resetOnlineChangeTraceInfo | Public slot to reset the online change trace info.
resizeEvent | Protected method handling resize events.
revertToUnmodified | Public method to revert back to the last saved state.
saveFile | Public method to save the text to a file.
saveFileAs | Public method to save a file with a new name.
saveFileCopy | Public method to save a copy of the file.
searchCurrentWordBackward | Public slot to search the current word backward.
searchCurrentWordForward | Public slot to search the current word forward.
selectCurrentWord | Public method to select the current word.
selectWord | Public method to select the word at a position.
setAutoCompletionEnabled | Public method to enable/disable autocompletion.
setAutoReloadEnabled | Public slot to enable automatic reloading for this editor.
setAutoSpellChecking | Public method to set the automatic spell checking.
setCheckExternalModificationEnabled | Public method to enable or disable the check for external modifications.
setFileName | Public method to set the file name of the current file.
setHighlight | Public method to set a text highlight.
setIgnoreExternalModification | Public slot to set ignore external modifications of the loaded file.
setLanguage | Public method to set a lexer language.
setMonospaced | Public method to set/reset a monospaced font.
setMouseClickHandler | Public method to set a mouse click handler.
setNoName | Public method to set the display string for an unnamed editor.
setSearchIndicator | Public method to set a search indicator for the given range.
setSharedEditStatus | Public method to set the editor's shared edit status.
setSpellingForProject | Public method to set the spell checking options for files belonging to the current project.
shortenEmptyLines | Public slot to compress lines consisting solely of whitespace characters.
showMouseHoverHelpData | Public method to show the mouse hover help data.
smartIndentLineOrSelection | Public slot to indent current line smartly.
sortLines | Public slot to sort the lines spanned by a rectangular selection.
streamCommentLineOrSelection | Public slot to stream comment the current line or current selection.
streamUncommentLineOrSelection | Public slot to stream uncomment the current line or current selection.
toggleBookmark | Public method to toggle a bookmark.
toggleComment | Public slot to toggle a block or stream comment.
toggleCurrentFold | Public slot to toggle the fold containing the current line.
toggleSyntaxError | Public method to toggle a syntax error indicator.
toggleWarning | Public method to toggle a warning indicator.
uncommentLineOrSelection | Public slot to uncomment the current line or current selection.
undo | Public method to undo the last recorded change.
unindentLineOrSelection | Public slot to unindent the current line or current selection.
unregisterMouseHoverHelpFunction | Public method to unregister a mouse hover help function.
updateMarkerMap | Public method to initiate an update of the marker map.
updateReadOnly | Public method to update the readOnly information for this editor.
viewportEvent | Protected method handling event of the viewport.
wheelEvent | Protected method to handle wheel events.
writeFile | Public method to write the text to a file.

### Static Methods

None

#### Editor (Constructor)

Editor(dbs, fn="", vm=None, filetype="", editor=None, tv=None, assembly=None, parent=None, )

Constructor

dbs (DebugServer)
  reference to the debug server object
fn (str (optional))
  name of the file to be opened. If it is None, a new (empty) editor is opened. (defaults to "")
vm (ViewManager (optional))
  reference to the view manager object (defaults to None)
filetype (str (optional))
  type of the source file (defaults to "")
editor (Editor (optional))
  reference to an Editor object, if this is a cloned view (defaults to None)
tv (TaskViewer (optional))
  reference to the task viewer object (defaults to None)
assembly (EditorAssembly (optional))
  reference to the editor assembly object (defaults to None)
parent (QWidget (optional))
  reference to the parent widget (defaults to None)

Raises OSError:
  raised to indicate an issue accessing the file

#### Editor.__aboutToShowContextMenu

__aboutToShowContextMenu()

Private slot handling the aboutToShow signal of the context menu.

#### Editor.__addBreakPoint

__addBreakPoint(line, temporary)

Private method to add a new breakpoint.

line (int)
  line number of the breakpoint
temporary (bool)
  flag indicating a temporary breakpoint

#### Editor.__addBreakPoints

__addBreakPoints(parentIndex, start, end)

Private slot to add breakpoints.

parentIndex (QModelIndex)
  index of parent item
start (int)
  start row
end (int)
  end row

#### Editor.__addFileAliasResource

__addFileAliasResource()

Private method to handle the Add aliased file context menu action.

#### Editor.__addFileResource

__addFileResource()

Private method to handle the Add file context menu action.

#### Editor.__addFileResources

__addFileResources()

Private method to handle the Add files context menu action.

#### Editor.__addLocalizedResource

__addLocalizedResource()

Private method to handle the Add localized resource context menu action.

#### Editor.__addResourceFrame

__addResourceFrame()

Private method to handle the Add resource frame context menu action.

#### Editor.__addToSpellingDictionary

__addToSpellingDictionary()

Private slot to add the word below the spelling context menu to the dictionary.

#### Editor.__adjustedCallTipPosition

__adjustedCallTipPosition(ctshift, pos)

Private method to calculate an adjusted position for showing calltips.

ctshift (int)
  amount the calltip shall be shifted
pos (int)
  position into the text

Return:
  new position for the calltip

Return Type:
  int

#### Editor.__applyTemplate

__applyTemplate(templateName, language)

Private method to apply a template by name.

templateName (str)
  name of the template to apply
language (str)
  name of the language (group) to get the template from

#### Editor.__autoComplete

__autoComplete(auto=True, context=None)

Private method to start auto-completion via plug-ins.

auto (bool)
  flag indicating a call from the __charAdded method
context (bool or None)
  flag indicating to complete a context

#### Editor.__autocompletionCancelled

__autocompletionCancelled()

Private slot to handle the cancellation of an auto-completion list.

#### Editor.__autosave

__autosave()

Private slot to save the contents of the editor automatically.

It is only saved by the autosave timer after an initial save (i.e. it already has a name).

#### Editor.__autosaveEnable

__autosaveEnable()

Private slot handling the autosave enable context menu action.

#### Editor.__bindCompleter

__bindCompleter(filename)

Private method to set the correct typing completer depending on language.

filename (str)
  filename used to determine the associated typing completer language

#### Editor.__bindLexer

__bindLexer(filename, pyname="")

Private method to set the correct lexer depending on language.

filename (str)
  filename used to determine the associated lexer language
pyname (str)
  name of the pygments lexer to use

#### Editor.__bindName

__bindName(line0)

Private method to generate a dummy filename for binding a lexer.

line0 (str)
  first line of text to use in the generation process

Return:
  dummy file name to be used for binding a lexer

Return Type:
  str

#### Editor.__boxCommentLine

__boxCommentLine()

Private slot to box comment the current line.

#### Editor.__boxCommentSelection

__boxCommentSelection()

Private slot to box comment the current selection.

#### Editor.__breakPointDataAboutToBeChanged

__breakPointDataAboutToBeChanged(startIndex, endIndex)

Private slot to handle the dataAboutToBeChanged signal of the breakpoint model.

startIndex (QModelIndex)
  start index of the rows to be changed
endIndex (QModelIndex)
  end index of the rows to be changed

#### Editor.__callTip

__callTip()

Private method to show call tips provided by a plugin.

#### Editor.__cancelMouseHoverHelp

__cancelMouseHoverHelp()

Private slot cancelling the display of mouse hover help.

#### Editor.__changeBreakPoints

__changeBreakPoints(startIndex, endIndex)

Private slot to set changed breakpoints.

startIndex (QModelIndex)
  start index of the breakpoints being changed
endIndex (QModelIndex)
  end index of the breakpoints being changed

#### Editor.__charAdded

__charAdded(charNumber)

Private slot called to handle the user entering a character.

charNumber (int)
  value of the character entered

#### Editor.__checkEncoding

__checkEncoding()

Private method to check the selected encoding of the encodings submenu.

#### Editor.__checkEol

__checkEol()

Private method to check the selected eol type of the eol submenu.

#### Editor.__checkLanguage

__checkLanguage()

Private method to check the selected language of the language submenu.

#### Editor.__checkSpellLanguage

__checkSpellLanguage()

Private slot to check the selected spell check language action.

#### Editor.__checkSpellingSelection

__checkSpellingSelection()

Private slot to spell check the current selection.

#### Editor.__checkSpellingWord

__checkSpellingWord()

Private slot to check the word below the spelling context menu.

#### Editor.__clearBreakpoints

__clearBreakpoints(fileName)

Private method to clear all breakpoints.

fileName (str)
  name of the file

#### Editor.__clearCompletionsCache

__clearCompletionsCache()

Private method to clear the auto-completions cache.

#### Editor.__clearTypedWarning

__clearTypedWarning(warningKind)

Private method to clear warnings of a specific kind.

warningKind (EditorWarningKind)
  kind of warning to clear

#### Editor.__codeCoverageHideAnnotations

__codeCoverageHideAnnotations()

Private method to handle the hide code coverage annotations context menu action.

#### Editor.__commentLine

__commentLine()

Private slot to comment the current line.

#### Editor.__commentSelection

__commentSelection()

Private slot to comment the current selection.

#### Editor.__completionListSelected

__completionListSelected(listId, txt)

Private slot to handle the selection from the completion list.

listId (int)
  the ID of the user list (should be 1 or 2)
txt (str)
  the selected text

#### Editor.__contextClose

__contextClose()

Private slot handling the close context menu entry.

#### Editor.__contextMenuCollapseFoldWithChildren

__contextMenuCollapseFoldWithChildren()

Private slot to handle the context menu collapse with children action.

#### Editor.__contextMenuExpandFoldWithChildren

__contextMenuExpandFoldWithChildren()

Private slot to handle the context menu expand with children action.

#### Editor.__contextMenuSpellingTriggered

__contextMenuSpellingTriggered(action)

Private slot to handle the selection of a suggestion of the spelling context menu.

action (QAction)
  reference to the action that was selected

#### Editor.__contextSave

__contextSave()

Private slot handling the save context menu entry.

#### Editor.__contextSaveAs

__contextSaveAs()

Private slot handling the save as context menu entry.

#### Editor.__contextSaveAsRemote

__contextSaveAsRemote()

Private slot handling the save as (remote) context menu entry.

#### Editor.__contextSaveCopy

__contextSaveCopy()

Private slot handling the save copy context menu entry.

#### Editor.__convertTabs

__convertTabs()

Private slot to automatically convert tabulators to spaces upon loading.

#### Editor.__createChangeMarkerPixmap

__createChangeMarkerPixmap(key, size=16)

Private method to create a pixmap for the change markers.

key (str)
  key of the color to use
size (int)
  size of the pixmap

Return:
  create pixmap

Return Type:
  QPixmap

#### Editor.__cursorPositionChanged

__cursorPositionChanged(line, index)

Private slot to handle the cursorPositionChanged signal.

It emits the signal cursorChanged with parameters fileName, line and pos.

line (int)
  line number of the cursor
index (int)
  position in line of the cursor

#### Editor.__delayedDocstringMenuPopup

__delayedDocstringMenuPopup(cursorPosition)

Private method to test, if the user might want to insert a docstring.

cursorPosition (tuple of (int, int))
  current cursor position (line and column)

#### Editor.__deleteAllChangeMarkers

__deleteAllChangeMarkers()

Private slot to delete all change markers.

#### Editor.__deleteBreakPoints

__deleteBreakPoints(parentIndex, start, end)

Private slot to delete breakpoints.

parentIndex (QModelIndex)
  index of parent item
start (int)
  start row
end (int)
  end row

#### Editor.__deselectAll

__deselectAll()

Private slot handling the deselect all context menu action.

#### Editor.__encodingChanged

__encodingChanged(encoding, propagate=True)

Private slot to handle a change of the encoding.

encoding (str)
  changed encoding
propagate (bool)
  flag indicating to propagate the change

#### Editor.__encodingsMenuTriggered

__encodingsMenuTriggered(act)

Private method to handle the selection of an encoding.

act (QAction)
  reference to the action that was triggered

#### Editor.__eolChanged

__eolChanged()

Private slot to handle a change of the eol mode.

#### Editor.__eolMenuTriggered

__eolMenuTriggered(act)

Private method to handle the selection of an eol type.

act (QAction)
  reference to the action that was triggered

#### Editor.__executeSelection

__executeSelection()

Private slot to execute the selected text in the shell window.

#### Editor.__getAcText

__getAcText()

Private method to get the text from cursor position for autocompleting.

Return:
  text left of cursor position

Return Type:
  str

#### Editor.__getCharacter

__getCharacter(pos)

Private method to get the character to the left of the current position in the current line.

pos (int)
  position to get character at

Return:
  requested character or "", if there are no more and the next position (i.e. pos - 1)

Return Type:
  tuple of (str, int)

#### Editor.__getCodeCoverageFile

__getCodeCoverageFile()

Private method to get the file name of the file containing coverage info.

Return:
  file name of the coverage file

Return Type:
  str

#### Editor.__getEditorConfig

__getEditorConfig(option, nodefault=False, config=None)

Private method to get the requested option via EditorConfig.

If there is no EditorConfig defined, the equivalent built-in option will be used (Preferences.getEditor() ). The option must be given as the Preferences option key. The mapping to the EditorConfig option name will be done within this method.

option (str)
  Preferences option key
nodefault (bool)
  flag indicating to not get the default value from Preferences but return None instead
config (dict)
  reference to an EditorConfig object or None

Return:
  value of requested setting or None if nothing was found and nodefault parameter was True

Return Type:
  Any

#### Editor.__getMacroName

__getMacroName()

Private method to select a macro name from the list of macros.

Return:
  Tuple of macro name and a flag, indicating, if the user pressed ok or canceled the operation.

Return Type:
  tuple of (str, bool)

#### Editor.__getOverrideValue

__getOverrideValue(option)

Private method to get an override value for the current file type.

option (str)
  Preferences option key

Return:
  override value; None in case nothing is defined

Return Type:
  Any

#### Editor.__getSaveFileName

__getSaveFileName(path=None, remote=False)

Private method to get the name of the file to be saved.

path (str (optional))
  directory to save the file in (defaults to None)
remote (bool (optional))
  flag indicating to save as a remote file (defaults to False)

Return:
  file name

Return Type:
  str

#### Editor.__ignoreSpellingAlways

__ignoreSpellingAlways()

Private to always ignore the word below the spelling context menu.

#### Editor.__indentLine

__indentLine(indent=True)

Private method to indent or unindent the current line.

indent (bool)
  flag indicating an indent operation
  If the flag is true, an indent operation is performed. Otherwise the current line is unindented.

#### Editor.__indentSelection

__indentSelection(indent=True)

Private method to indent or unindent the current selection.

indent (bool)
  flag indicating an indent operation
  If the flag is true, an indent operation is performed. Otherwise the current line is unindented.

#### Editor.__initContextMenu

__initContextMenu()

Private method used to setup the context menu.

#### Editor.__initContextMenuAutocompletion

__initContextMenuAutocompletion()

Private method used to setup the Checks context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuChecks

__initContextMenuChecks()

Private method used to setup the Checks context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuEncodings

__initContextMenuEncodings()

Private method used to setup the Encodings context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuEol

__initContextMenuEol()

Private method to setup the eol context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuFormatting

__initContextMenuFormatting()

Private method used to setup the Code Formatting context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuGraphics

__initContextMenuGraphics()

Private method used to setup the diagrams context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuLanguages

__initContextMenuLanguages()

Private method used to setup the Languages context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuMargins

__initContextMenuMargins()

Private method used to setup the context menu for the margins.

#### Editor.__initContextMenuReopenWithEncoding

__initContextMenuReopenWithEncoding()

Private method used to setup the Reopen With Encoding context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuResources

__initContextMenuResources()

Private method used to setup the Resources context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuShow

__initContextMenuShow()

Private method used to setup the Show context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuSpellCheck

__initContextMenuSpellCheck()

Private method used to setup the spell checking context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuSpellLanguages

__initContextMenuSpellLanguages()

Private method to setup the spell checking languages context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initContextMenuTools

__initContextMenuTools()

Private method used to setup the Tools context sub menu.

Return:
  reference to the generated menu

Return Type:
  QMenu

#### Editor.__initOnlineChangeTrace

__initOnlineChangeTrace()

Private slot to initialize the online change trace.

#### Editor.__initOnlineSyntaxCheck

__initOnlineSyntaxCheck()

Private slot to initialize the online syntax check.

#### Editor.__insertDocstring

__insertDocstring()

Private slot to generate and insert a docstring for the function under the cursor.

#### Editor.__isCommentedLine

__isCommentedLine(line, commentStr)

Private method to check, if the given line is a comment line as produced by the configured comment rules.

line (str)
  text of the line to check
commentStr (str)
  comment string to check against

Return:
  flag indicating a commented line

Return Type:
  bool

#### Editor.__isStartChar

__isStartChar(ch)

Private method to check, if a character is an autocompletion start character.

ch (str)
  character to be checked

Return:
  flag indicating the result

Return Type:
  bool

#### Editor.__isStreamCommentedLine

__isStreamCommentedLine(line, streamCommentStr)

Private method to check, if the line is commented by a stream comment.

line (str)
  text of the line to check
streamCommentStr (dict)
  dictionary containing the stream comment start and end strings

Return:
  flag indicating a stream commented line

Return Type:
  bool

#### Editor.__languageChanged

__languageChanged(language, propagate=True)

Private method handling a change of a connected editor's language.

language (str)
  language to be set
propagate (bool)
  flag indicating to propagate the change

#### Editor.__languageMenuTriggered

__languageMenuTriggered(act)

Private method to handle the selection of a lexer language.

act (QAction)
  reference to the action that was triggered

#### Editor.__lmBbookmarks

__lmBbookmarks()

Private method to handle the 'LMB toggles bookmark' context menu action.

#### Editor.__lmBbreakpoints

__lmBbreakpoints()

Private method to handle the 'LMB toggles breakpoint' context menu action.

#### Editor.__loadDiagram

__loadDiagram()

Private slot to load a diagram from file.

#### Editor.__loadEditorConfig

__loadEditorConfig(fileName="")

Private method to load the EditorConfig properties.

fileName (str)
  name of the file

#### Editor.__loadEditorConfigObject

__loadEditorConfigObject(fileName)

Private method to load the EditorConfig properties for the given file name.

fileName (str)
  name of the file

Return:
  EditorConfig dictionary

Return Type:
  dict

#### Editor.__marginClicked

__marginClicked(margin, line, _modifiers)

Private slot to handle the marginClicked signal.

margin (int)
  id of the clicked margin
line (int)
  line number of the click
_modifiers (Qt.KeyboardModifiers)
  keyboard modifiers (unused)

#### Editor.__marginHoverEnd

__marginHoverEnd()

Private slot cancelling the display of syntax error or a warning marker text.

#### Editor.__marginHoverStart

__marginHoverStart(pos, x, y)

Private slot showing the text of a syntax error or a warning marker.

pos (int)
  mouse position into the document
x (int)
  x-value of mouse screen position
y (int)
  y-value of mouse screen position

#### Editor.__marginNumber

__marginNumber(xPos)

Private method to calculate the margin number based on a x position.

xPos (int)
  x position

Return:
  margin number (integer, -1 for no margin)

Return Type:
  int

#### Editor.__markOccurrences

__markOccurrences()

Private method to mark all occurrences of the current word.

#### Editor.__menuClearBreakpoints

__menuClearBreakpoints()

Private slot to handle the 'Clear all breakpoints' context menu action.

#### Editor.__menuToggleBreakpointEnabled

__menuToggleBreakpointEnabled()

Private slot to handle the 'Enable/Disable breakpoint' context menu action.

#### Editor.__menuToggleTemporaryBreakpoint

__menuToggleTemporaryBreakpoint()

Private slot to handle the 'Toggle temporary breakpoint' context menu action.

#### Editor.__modificationChanged

__modificationChanged(m)

Private slot to handle the modificationChanged signal.

It emits the signal modificationStatusChanged with parameters m and self.

m (bool)
  modification status

#### Editor.__modificationReadOnly

__modificationReadOnly()

Private slot to handle the modificationAttempted signal.

#### Editor.__modified

__modified(_pos, mtype, _text, _length, linesAdded, line, _foldNow, _foldPrev, _token, _annotationLinesAdded, )

Private method to handle changes of the number of lines.

_pos (int)
  start position of change (unused)
mtype (int)
  flags identifying the change
_text (str)
  text that is given to the Undo system (unused)
_length (int)
  length of the change (unused)
linesAdded (int)
  number of added/deleted lines
line (int)
  line number of a fold level or marker change
_foldNow (int)
  new fold level (unused)
_foldPrev (int)
  previous fold level (unused)
_token (int)
  ??? (unused)
_annotationLinesAdded (int)
  number of added/deleted annotation lines (unused)

#### Editor.__newView

__newView()

Private slot to create a new view to an open document.

#### Editor.__newViewNewSplit

__newViewNewSplit()

Private slot to create a new view to an open document.

#### Editor.__normalizedEncoding

__normalizedEncoding(encoding="")

Private method to calculate the normalized encoding string.

encoding (str)
  encoding to be normalized

Return:
  normalized encoding

Return Type:
  str

#### Editor.__onlineChangeTraceTimerTimeout

__onlineChangeTraceTimerTimeout()

Private slot to mark added and changed lines.

#### Editor.__performFormatWithBlack

__performFormatWithBlack(action)

Private method to format the source code using the 'Black' tool.

Following actions are supported.

- BlackFormattingAction.Format - the code reformatting is performed
- BlackFormattingAction.Check - a check is performed, if code formatting is necessary
- BlackFormattingAction.Diff - a unified diff of potential code formatting changes is generated

action (BlackFormattingAction)
  formatting operation to be performed

#### Editor.__performImportSortingWithIsort

__performImportSortingWithIsort(action)

Private method to sort the import statements using the 'isort' tool.

Following actions are supported.

- IsortFormattingAction.Sort - the import statement sorting is performed
- IsortFormattingAction.Check - a check is performed, if import statement resorting is necessary
- IsortFormattingAction.Diff - a unified diff of potential import statement changes is generated

action (IsortFormattingAction)
  sorting operation to be performed

#### Editor.__popupDocstringMenu

__popupDocstringMenu(lastLineText, lastCursorPosition)

Private method to pop up a menu asking the user, if a docstring should be inserted.

lastLineText (str)
  line contents when the delay timer was started
lastCursorPosition (tuple of (int, int))
  position of the cursor when the delay timer was started (line and index)

#### Editor.__printPreview

__printPreview(printer)

Private slot to generate a print preview.

printer (QScintilla.Printer.Printer)
  reference to the printer object

#### Editor.__processFlags

__processFlags()

Private method to extract flags and process them.

Return:
  list of change flags

Return Type:
  list of str

#### Editor.__processSyntaxCheckError

__processSyntaxCheckError(fn, msg)

Private slot to report an error message of a syntax check.

fn (str)
  filename of the file
msg (str)
  error message

#### Editor.__processSyntaxCheckResult

__processSyntaxCheckResult(fn, problems)

Private slot to report the resulting messages of a syntax check.

fn (str)
  filename of the checked file
problems (dict)
  dictionary with the keys 'error' and 'warnings' which hold a list containing details about the error/ warnings (file name, line number, column, codestring (only at syntax errors), the message)

#### Editor.__projectPropertiesChanged

__projectPropertiesChanged()

Private slot to handle changes of the project properties.

#### Editor.__refreshAnnotations

__refreshAnnotations()

Private method to refresh the annotations.

#### Editor.__registerImages

__registerImages()

Private method to register images for autocompletion lists.

#### Editor.__reinitOnlineChangeTrace

__reinitOnlineChangeTrace()

Private slot to re-initialize the online change trace.

#### Editor.__removeFromSpellingDictionary

__removeFromSpellingDictionary()

Private slot to remove the word below the context menu to the dictionary.

#### Editor.__removeTrailingWhitespace

__removeTrailingWhitespace()

Private method to remove trailing whitespace.

#### Editor.__reopenWithEncodingMenuTriggered

__reopenWithEncodingMenuTriggered(act)

Private method to handle the rereading of the file with a selected encoding.

act (QAction)
  reference to the action that was triggered

#### Editor.__replaceLeadingUnderscores

__replaceLeadingUnderscores(txt)

Private method to replace the first two underlines for invers sorting.

txt (str)
  completion text

Return:
  modified completion text

Return Type:
  str

#### Editor.__resetLanguage

__resetLanguage(propagate=True)

Private method used to reset the language selection.

propagate (bool)
  flag indicating to propagate the change

#### Editor.__resetOnlineChangeTraceTimer

__resetOnlineChangeTraceTimer()

Private method to reset the online syntax check timer.

#### Editor.__resetOnlineSyntaxCheckTimer

__resetOnlineSyntaxCheckTimer()

Private method to reset the online syntax check timer.

#### Editor.__resizeLinenoMargin

__resizeLinenoMargin()

Private slot to resize the line numbers margin.

#### Editor.__restoreBreakpoints

__restoreBreakpoints()

Private method to restore the breakpoints.

#### Editor.__saveDeviceFile

__saveDeviceFile(saveas=False)

Private method to save the text to a file on the connected device.

saveas (bool (optional))
  flag indicating a 'save as' action (defaults to False)

Return:
  flag indicating success

Return Type:
  bool

#### Editor.__saveLastEditPosition

__saveLastEditPosition()

Private slot to record the last edit position.

#### Editor.__searchCurrentWord

__searchCurrentWord(forward=True)

Private slot to search the next occurrence of the current word.

forward (bool)
  flag indicating the search direction

#### Editor.__selectAll

__selectAll()

Private slot handling the select all context menu action.

#### Editor.__selectPygmentsLexer

__selectPygmentsLexer()

Private method to select a specific pygments lexer.

Return:
  name of the selected pygments lexer

Return Type:
  str

#### Editor.__setAnnotation

__setAnnotation(line)

Private method to set the annotations for the given line.

line (int)
  number of the line that needs annotation

#### Editor.__setAnnotationStyles

__setAnnotationStyles()

Private slot to define the style used by inline annotations.

#### Editor.__setAutoCompletion

__setAutoCompletion()

Private method to configure the autocompletion function.

#### Editor.__setCallTips

__setCallTips()

Private method to configure the calltips function.

#### Editor.__setEolMode

__setEolMode()

Private method to configure the eol mode of the editor.

#### Editor.__setLineMarkerColours

__setLineMarkerColours()

Private method to set the line marker colours.

#### Editor.__setMarginsDisplay

__setMarginsDisplay()

Private method to configure margins 0 and 2.

#### Editor.__setSpelling

__setSpelling()

Private method to initialize the spell checking functionality.

#### Editor.__setSpellingLanguage

__setSpellingLanguage(language, pwl="", pel="")

Private method to set the spell checking language.

language (str)
  spell checking language to be set
pwl (str)
  name of the personal/project word list
pel (str)
  name of the personal/project exclude list

#### Editor.__setTabAndIndent

__setTabAndIndent()

Private method to set indentation size and style and tab width.

#### Editor.__setTextDisplay

__setTextDisplay()

Private method to configure the text display.

#### Editor.__shouldAutosave

__shouldAutosave()

Private method to check the autosave flags.

Return:
  flag indicating this editor should be saved

Return Type:
  bool

#### Editor.__showApplicationDiagram

__showApplicationDiagram()

Private method to handle the Imports Diagram context menu action.

#### Editor.__showClassDiagram

__showClassDiagram()

Private method to handle the Class Diagram context menu action.

#### Editor.__showCodeCoverage

__showCodeCoverage()

Private method to handle the code coverage context menu action.

#### Editor.__showCodeInfo

__showCodeInfo()

Private slot to handle the context menu action to show code info.

#### Editor.__showCodeMetrics

__showCodeMetrics()

Private method to handle the code metrics context menu action.

#### Editor.__showCompletionsList

__showCompletionsList(completions)

Private method to show the completions list.

completions (list of str or set of str)
  completions to be shown

#### Editor.__showContextMenu

__showContextMenu(pos)

Private slot to show a context menu.

pos (QPoint)
  position for the context menu

#### Editor.__showContextMenuAutocompletion

__showContextMenuAutocompletion()

Private slot called before the autocompletion menu is shown.

#### Editor.__showContextMenuChecks

__showContextMenuChecks()

Private slot handling the aboutToShow signal of the checks context menu.

#### Editor.__showContextMenuEncodings

__showContextMenuEncodings()

Private slot handling the aboutToShow signal of the encodings context menu.

#### Editor.__showContextMenuEol

__showContextMenuEol()

Private slot handling the aboutToShow signal of the eol context menu.

#### Editor.__showContextMenuFormatting

__showContextMenuFormatting()

Private slot handling the aboutToShow signal of the code formatting context menu.

#### Editor.__showContextMenuGraphics

__showContextMenuGraphics()

Private slot handling the aboutToShow signal of the diagrams context menu.

#### Editor.__showContextMenuLanguages

__showContextMenuLanguages()

Private slot handling the aboutToShow signal of the languages context menu.

#### Editor.__showContextMenuMargin

__showContextMenuMargin(menu)

Private slot handling the aboutToShow signal of the margins context menu.

menu (QMenu)
  reference to the menu to be shown

#### Editor.__showContextMenuResources

__showContextMenuResources()

Private slot handling the aboutToShow signal of the resources context menu.

#### Editor.__showContextMenuShow

__showContextMenuShow()

Private slot called before the show menu is shown.

#### Editor.__showContextMenuSpellCheck

__showContextMenuSpellCheck()

Private slot handling the aboutToShow signal of the spell check context menu.

#### Editor.__showContextMenuSpellLanguages

__showContextMenuSpellLanguages()

Private slot handling the aboutToShow signal of the spell check languages context menu.

#### Editor.__showContextMenuSpelling

__showContextMenuSpelling()

Private slot to set up the spelling menu before it is shown.

#### Editor.__showContextMenuTools

__showContextMenuTools()

Private slot handling the aboutToShow signal of the tools context menu.

#### Editor.__showImportsDiagram

__showImportsDiagram()

Private method to handle the Imports Diagram context menu action.

#### Editor.__showMouseHoverHelp

__showMouseHoverHelp(pos, x, y)

Private slot showing code information about the symbol under the cursor.

pos (int)
  mouse position into the document
x (int)
  x-value of mouse screen position
y (int)
  y-value of mouse screen position

#### Editor.__showPackageDiagram

__showPackageDiagram()

Private method to handle the Package Diagram context menu action.

#### Editor.__showProfileData

__showProfileData()

Private method to handle the show profile data context menu action.

#### Editor.__showSyntaxError

__showSyntaxError(line=-1)

Private slot to handle the 'Show syntax error message' context menu action.

line (int)
  line number to show the syntax error for

#### Editor.__showWarning

__showWarning(line=-1)

Private slot to handle the 'Show warning' context menu action.

line (int)
  line number to show the warning for

#### Editor.__spellCharAdded

__spellCharAdded(charNumber)

Private slot called to handle the user entering a character.

charNumber (int)
  value of the character entered

#### Editor.__spellLanguageChanged

__spellLanguageChanged(language, propagate=True)

Private slot to handle a change of the spell check language.

language (str)
  new spell check language
propagate (bool)
  flag indicating to propagate the change

#### Editor.__spellLanguagesMenuTriggered

__spellLanguagesMenuTriggered(act)

Private method to handle the selection of a spell check language.

act (QAction)
  reference to the action that was triggered

#### Editor.__streamCommentLine

__streamCommentLine()

Private slot to stream comment the current line.

#### Editor.__streamCommentSelection

__streamCommentSelection()

Private slot to comment the current selection.

#### Editor.__streamUncommentLine

__streamUncommentLine()

Private slot to stream uncomment the current line.

#### Editor.__streamUncommentSelection

__streamUncommentSelection()

Private slot to stream uncomment the current selection.

#### Editor.__styleNeeded

__styleNeeded(position)

Private slot to handle the need for more styling.

position (int)
  end position, that needs styling

#### Editor.__textChanged

__textChanged()

Private slot to handle a change of the editor text.

This slot defers the handling to the next time the event loop is run in order to ensure, that cursor position has been updated by the underlying Scintilla editor.

#### Editor.__toggleAutoCompletionEnable

__toggleAutoCompletionEnable()

Private slot to handle the Enable Autocompletion context menu entry.

#### Editor.__toggleBlockComment

__toggleBlockComment()

Private slot to toggle the comment of a block.

If the editor contains selected text and the start line is not commented, it will be commented. Otherwise the selection will be un-commented. In case there is no selected text and the current line is not commented, it will be commented. If is commented, the comment block will be removed.

#### Editor.__toggleBreakpoint

__toggleBreakpoint(line, temporary=False)

Private method to toggle a breakpoint.

line (int)
  line number of the breakpoint
temporary (bool)
  flag indicating a temporary breakpoint

#### Editor.__toggleBreakpointEnabled

__toggleBreakpointEnabled(line)

Private method to toggle a breakpoints enabled status.

line (int)
  line number of the breakpoint

#### Editor.__toggleStreamComment

__toggleStreamComment()

Private slot to toggle the comment of a block.

If the editor contains selected text and the start line is not commented, it will be commented. Otherwise the selection will be un-commented. In case there is no selected text and the current line is not commented, it will be commented. If is commented, the comment block will be removed.

#### Editor.__toggleTypingAids

__toggleTypingAids()

Private slot to toggle the typing aids.

#### Editor.__uncommentLine

__uncommentLine()

Private slot to uncomment the current line.

#### Editor.__uncommentSelection

__uncommentSelection()

Private slot to uncomment the current selection.

#### Editor.addCallTipHook

addCallTipHook(key, func)

Public method to set a calltip provider.

key (str)
  name of the provider
func (function(editor, int, int) -> list of str)
  function providing calltips. func should be a function taking a reference to the editor, a position into the text and the amount of commas to the left of the cursor. It should return the possible calltips as a list of strings.

#### Editor.addClone

addClone(editor)

Public method to add a clone to our list.

editor (Editor)
  reference to the cloned editor

#### Editor.addCompletionListHook

addCompletionListHook(key, func, asynchroneous=False)

Public method to set an auto-completion list provider.

key (str)
  name of the provider
func (function(editor, bool) -> list of str in case async is False)
  function providing completion list. func should be a function taking a reference to the editor and a boolean indicating to complete a context. It should return the possible completions as a list of strings. and function(editor, bool, str) returning nothing in case async is True
asynchroneous (bool)
  flag indicating an asynchroneous function

#### Editor.addedToProject

addedToProject()

Public method to signal, that this editor has been added to a project.

#### Editor.autoComplete

autoComplete(auto=False, context=True)

Public method to start auto-completion.

auto (bool)
  flag indicating a call from the __charAdded method
context (bool)
  flag indicating to complete a context

#### Editor.autoCompleteQScintilla

autoCompleteQScintilla()

Public method to perform an autocompletion using QScintilla methods.

#### Editor.boxCommentLineOrSelection

boxCommentLineOrSelection()

Public slot to box comment the current line or current selection.

#### Editor.callTip

callTip()

Public method to show calltips.

#### Editor.canAutoCompleteFromAPIs

canAutoCompleteFromAPIs()

Public method to check for API availablity.

Return:
  flag indicating autocompletion from APIs is available

Return Type:
  bool

#### Editor.canProvideCallTipps

canProvideCallTipps()

Public method to test the calltips availability.

Return:
  flag indicating the availability of calltips

Return Type:
  bool

#### Editor.canProvideDynamicAutoCompletion

canProvideDynamicAutoCompletion()

Public method to test the dynamic auto-completion availability.

Return:
  flag indicating the availability of dynamic auto-completion

Return Type:
  bool

#### Editor.changeEvent

changeEvent(evt)

Protected method called to process an event.

This implements special handling for the events showMaximized, showMinimized and showNormal. The windows caption is shortened for the minimized mode and reset to the full filename for the other modes. This is to make the editor windows work nicer with the QWorkspace.

evt (QEvent)
  the event, that was generated

#### Editor.checkDirty

checkDirty()

Public method to check dirty status and open a message window.

Return:
  flag indicating successful reset of the dirty flag

Return Type:
  bool

#### Editor.checkModificationTime

checkModificationTime(filename="")

Public method to check, if the modification time of the file is different from the recorded one.

filename (str (optional))
  name of the file to check against (defaults to "")

Return:
  flag indicating that the file modification time is different. For non-existent files a 'False' value will be reported.

Return Type:
  bool

#### Editor.checkReadOnly

checkReadOnly()

Public method to check the 'read only' state.

Return:
  flag indicate a 'read only' state

Return Type:
  bool

#### Editor.checkReloadFile

checkReloadFile()

Public slot to check, if the file needs to be reloaded.

#### Editor.checkSpelling

checkSpelling()

Public slot to perform an interactive spell check of the document.

#### Editor.checkSyntax

checkSyntax()

Public method to perform an automatic syntax check of the file.

#### Editor.clearAllHighlights

clearAllHighlights()

Public method to clear all highlights.

#### Editor.clearBookmarks

clearBookmarks()

Public slot to handle the 'Clear all bookmarks' context menu action.

#### Editor.clearBreakpoint

clearBreakpoint(line)

Public method to clear a breakpoint.

Note: This doesn't clear the breakpoint in the debugger, it just deletes it from the editor internal list of breakpoints.

line (int)
  line number of the breakpoint

#### Editor.clearChangeMarkers

clearChangeMarkers()

Public method to clear all change markers.

#### Editor.clearCodeWarnings

clearCodeWarnings()

Public slot to clear all code warnings.

#### Editor.clearErrorWarnings

clearErrorWarnings()

Public slot to clear all error warnings.

#### Editor.clearFlakesWarnings

clearFlakesWarnings()

Public slot to clear all pyflakes warnings.

#### Editor.clearHighlight

clearHighlight(startLine, startIndex, endLine, endIndex)

Public method to clear a text highlight.

startLine (int)
  line of the highlight start
startIndex (int)
  index of the highlight start
endLine (int)
  line of the highlight end
endIndex (int)
  index of the highlight end

#### Editor.clearInfoWarnings

clearInfoWarnings()

Public slot to clear all info warnings.

#### Editor.clearSearchIndicators

clearSearchIndicators()

Public method to clear all search indicators.

#### Editor.clearSearchSelectionHighlight

clearSearchSelectionHighlight()

Public method to clear all highlights.

#### Editor.clearStyleWarnings

clearStyleWarnings()

Public slot to clear all style warnings.

#### Editor.clearStyles

clearStyles()

Public method to set the styles according the selected Qt style or the selected editor colours.

#### Editor.clearSyntaxError

clearSyntaxError()

Public slot to handle the 'Clear all syntax error' context menu action.

#### Editor.clearWarnings

clearWarnings()

Public slot to clear all warnings.

#### Editor.close

close()

Public method called when the window gets closed.

This overwritten method redirects the action to our ViewManager.closeEditor, which in turn calls our closeIt method.

Return:
  flag indicating a successful close of the editor

Return Type:
  bool

#### Editor.closeIt

closeIt()

Public method called by the viewmanager to finally get rid of us.

#### Editor.codeCoverageShowAnnotations

codeCoverageShowAnnotations(silent=False, coverageFile=None)

Public method to handle the show code coverage annotations context menu action.

silent (bool (optional))
  flag indicating to not show any dialog (defaults to False)
coverageFile (str (optional))
  path of the file containing the code coverage data (defaults to None)

#### Editor.collapseFoldWithChildren

collapseFoldWithChildren(line=-1)

Public method to collapse the current fold including its children.

line (int)
  number of line to be expanded

#### Editor.commentLineOrSelection

commentLineOrSelection()

Public slot to comment the current line or current selection.

If the lexer supports a block comment, that is used for commenting. Otherwise a stream comment is used if that is supported. If none of these are supported, the request is ignored silently.

#### Editor.completionsListReady

completionsListReady(completions, acText)

Public method to show the completions determined by a completions provider.

completions (list of str or set of str)
  list of possible completions
acText (str)
  text to be completed

#### Editor.convertEols

convertEols(eolMode)

Public method to convert the end-of-line marker.

This variant of the method emits a signal to update the IDE after the original method was called.

eolMode (QsciScintilla.EolMode)
  end-of-line mode

#### Editor.curLineHasBreakpoint

curLineHasBreakpoint()

Public method to check for the presence of a breakpoint at the current line.

Return:
  flag indicating the presence of a breakpoint

Return Type:
  bool

#### Editor.determineFileType

determineFileType()

Public method to determine the file type using various tests.

Return:
  type of the displayed file or an empty string

Return Type:
  str

#### Editor.dragEnterEvent

dragEnterEvent(event)

Protected method to handle the drag enter event.

event (QDragEnterEvent)
  the drag enter event

#### Editor.dragLeaveEvent

dragLeaveEvent(event)

Protected method to handle the drag leave event.

event (QDragLeaveEvent)
  the drag leave event

#### Editor.dragMoveEvent

dragMoveEvent(event)

Protected method to handle the drag move event.

event (QDragMoveEvent)
  the drag move event

#### Editor.dropEvent

dropEvent(event)

Protected method to handle the drop event.

event (QDropEvent)
  the drop event

#### Editor.editorCommand

editorCommand(cmd)

Public method to perform a simple editor command.

cmd (int)
  the scintilla command to be performed

#### Editor.encloseSelectedText

encloseSelectedText()

Local function to enclose the current selection with some characters.

encString (str)
  string to use to enclose the selection (one or two characters)

#### Editor.ensureVisible

ensureVisible(line, expand=False)

Public method to ensure, that the specified line is visible.

line (int)
  line number to make visible
expand (bool)
  flag indicating to expand all folds

#### Editor.ensureVisibleTop

ensureVisibleTop(line, expand=False)

Public method to ensure, that the specified line is visible at the top of the editor.

line (int)
  line number to make visible
expand (bool)
  flag indicating to expand all folds

#### Editor.event

event(evt)

Public method handling events.

evt (QEvent)
  reference to the event

Return:
  flag indicating, if the event was handled

Return Type:
  bool

#### Editor.expandFoldWithChildren

expandFoldWithChildren(line=-1)

Public method to expand the current fold including its children.

line (int)
  number of line to be expanded

#### Editor.expandTabs

expandTabs()

Public slot to expand tabulators to spaces.

#### Editor.exportFile

exportFile(exporterFormat)

Public method to export the file.

exporterFormat (str)
  format the file should be exported into

#### Editor.extractTasks

extractTasks()

Public slot to extract all tasks.

#### Editor.fileRenamed

fileRenamed(fn)

Public slot to handle the editorRenamed signal.

fn (str.)
  filename to be set for the editor

#### Editor.focusInEvent

focusInEvent(event)

Protected method called when the editor receives focus.

This method checks for modifications of the current file and rereads it upon request. The cursor is placed at the current position assuming, that it is in the vicinity of the old position after the reread.

event (QFocusEvent)
  the event object

#### Editor.focusOutEvent

focusOutEvent(event)

Protected method called when the editor loses focus.

event (QFocusEvent)
  the event object

#### Editor.gestureEvent

gestureEvent(evt)

Protected method handling gesture events.

evt (QGestureEvent)
  reference to the gesture event

#### Editor.getApiLanguage

getApiLanguage()

Public method to get the API language of the editor.

Return:
  API language

Return Type:
  str

#### Editor.getAssembly

getAssembly()

Public method to get a reference to the editor assembly object.

Return:
  reference to the editor assembly object

Return Type:
  EditorAssembly

#### Editor.getBookmarkLines

getBookmarkLines()

Public method to get the lines containing a bookmark.

Return:
  list of lines containing a bookmark

Return Type:
  list of int

#### Editor.getBookmarks

getBookmarks()

Public method to retrieve the bookmarks.

Return:
  sorted list of all lines containing a bookmark

Return Type:
  list of int

#### Editor.getBreakpointLines

getBreakpointLines()

Public method to get the lines containing a breakpoint.

Return:
  list of lines containing a breakpoint

Return Type:
  list of int

#### Editor.getCallTipHook

getCallTipHook(key)

Public method to get the registered calltip provider.

key (str)
  name of the provider

Return:
  function providing calltips

Return Type:
  function or None

#### Editor.getChangeLines

getChangeLines()

Public method to get the lines containing a change.

Return:
  list of lines containing a change

Return Type:
  list of int

#### Editor.getCompleter

getCompleter()

Public method to retrieve a reference to the completer object.

Return:
  the completer object

Return Type:
  CompleterBase

#### Editor.getCompletionListHook

getCompletionListHook(key)

Public method to get the registered completion list provider.

key (str)
  name of the provider

Return:
  function providing completion list

Return Type:
  function or None

#### Editor.getCoverageLines

getCoverageLines()

Public method to get the lines containing a coverage marker.

Return:
  list of lines containing a coverage marker

Return Type:
  list of int

#### Editor.getCurrentWord

getCurrentWord()

Public method to get the word at the current position.

Return:
  the word at that current position

Return Type:
  str

#### Editor.getCurrentWordBoundaries

getCurrentWordBoundaries()

Public method to get the word boundaries at the current position.

Return:
  tuple with start and end indexes of the current word

Return Type:
  tuple of (int, int)

#### Editor.getDiffText

getDiffText()

Public method to generate a diff between the file on disk and the current text.

Return:
  string containing the unified diff output

Return Type:
  str

#### Editor.getDocstringGenerator

getDocstringGenerator()

Public method to get a reference to the docstring generator.

Return:
  reference to the docstring generator

Return Type:
  BaseDocstringGenerator

#### Editor.getEditorConfig

getEditorConfig(option)

Public method to get the requested option via EditorConfig.

option (str)
  Preferences option key

Return:
  value of requested setting

Return Type:
  Any

#### Editor.getEncoding

getEncoding()

Public method to return the current encoding.

Return:
  current encoding

Return Type:
  str

#### Editor.getFileName

getFileName()

Public method to return the name of the file being displayed.

Return:
  filename of the displayed file

Return Type:
  str

#### Editor.getFileType

getFileType()

Public method to return the type of the file being displayed.

Return:
  type of the displayed file

Return Type:
  str

#### Editor.getFileTypeByFlag

getFileTypeByFlag()

Public method to return the type of the file, if it was set by an eflag: marker.

Return:
  type of the displayed file, if set by an eflag: marker or an empty string

Return Type:
  str

#### Editor.getHighlightPosition

getHighlightPosition()

Public method to return the position of the highlight bar.

Return:
  line number of the highlight bar

Return Type:
  int

#### Editor.getLanguage

getLanguage(normalized=True, forPygments=False)

Public method to retrieve the language of the editor.

normalized (bool)
  flag indicating to normalize some Pygments lexer names
forPygments (bool)
  flag indicating to normalize some lexer names for Pygments

Return:
  language of the editor

Return Type:
  str

#### Editor.getLexer

getLexer()

Public method to retrieve a reference to the lexer object.

Return:
  the lexer object

Return Type:
  Lexer

#### Editor.getMenu

getMenu(menuName)

Public method to get a reference to the main context menu or a submenu.

menuName (str)
  name of the menu

Return:
  reference to the requested menu or None

Return Type:
  QMenu

#### Editor.getModificationTime

getModificationTime()

Public method to get the time of the latest (saved) modification.

Return:
  time of the latest modification

Return Type:
  int

#### Editor.getMouseClickHandler

getMouseClickHandler(modifiers, button)

Public method to get a registered mouse click handler.

modifiers (Qt.KeyboardModifiers)
  keyboard modifiers of the handler
button (Qt.MouseButton)
  mouse button of the handler

Return:
  plug-in name and registered function

Return Type:
  tuple of str and func

#### Editor.getMouseClickHandlers

getMouseClickHandlers(name)

Public method to get all registered mouse click handlers of a plug-in.

name (str)
  name of the plug-in

Return:
  registered mouse click handlers as list of modifiers, mouse button and function

Return Type:
  list of tuple of (Qt.KeyboardModifiers, Qt.MouseButton, func)

#### Editor.getNoName

getNoName()

Public method to get the display string for an unnamed editor.

Return:
  display string for this unnamed editor

Return Type:
  str

#### Editor.getSearchIndicatorLines

getSearchIndicatorLines()

Public method to get the lines containing a search indicator.

Return:
  list of lines containing a search indicator

Return Type:
  list of int

#### Editor.getSearchSelectionHighlight

getSearchSelectionHighlight()

Public method to get the start and end of the selection highlight.

Return:
  tuple containing the start line and index and the end line and index

Return Type:
  tuple of (int, int, int, int)

#### Editor.getSearchText

getSearchText(selectionOnly=False)

Public method to determine the selection or the current word for the next search operation.

selectionOnly (bool)
  flag indicating that only selected text should be returned

Return:
  selection or current word

Return Type:
  str

#### Editor.getSharedEditStatus

getSharedEditStatus()

Public method to get the editor's shared edit status.

Return:
  reference to the shared edit status

Return Type:
  SharedEditStatus

#### Editor.getSpellingLanguage

getSpellingLanguage()

Public method to get the current spelling language.

Return:
  current spelling language

Return Type:
  str

#### Editor.getSyntaxErrorLines

getSyntaxErrorLines()

Public method to get the lines containing a syntax error.

Return:
  list of lines containing a syntax error

Return Type:
  list of int

#### Editor.getTaskLines

getTaskLines()

Public method to get the lines containing a task.

Return:
  list of lines containing a task

Return Type:
  list of int

#### Editor.getVcsConflictMarkerLines

getVcsConflictMarkerLines()

Public method to determine the lines containing a VCS conflict marker.

Return:
  list of line numbers containg a VCS conflict marker

Return Type:
  list of int

#### Editor.getWarningLines

getWarningLines()

Public method to get the lines containing a warning.

Return:
  list of lines containing a warning

Return Type:
  list of int

#### Editor.getWord

getWord(line, index, direction=0, useWordChars=True, forCompletion=False)

Public method to get the word at a position.

line (int)
  number of line to look at
index (int)
  position to look at
direction (int)
  direction to look in (0 = whole word, 1 = left, 2 = right)
useWordChars (bool (optional))
  flag indicating to use the wordCharacters method (defaults to True)
forCompletion (bool (optional))
  flag indicating a modification for completions (defaults to False)

Return:
  the word at that position

Return Type:
  str

#### Editor.getWordBoundaries

getWordBoundaries(line, index, useWordChars=True, forCompletion=False)

Public method to get the word boundaries at a position.

line (int)
  number of line to look at
index (int)
  position to look at
useWordChars (bool (optional))
  flag indicating to use the wordCharacters method (defaults to True)
forCompletion (bool (optional))
  flag indicating a modification for completions (defaults to False)

Return:
  tuple with start and end indexes of the word at the position

Return Type:
  tuple of (int, int)

#### Editor.getWordLeft

getWordLeft(line, index)

Public method to get the word to the left of a position.

line (int)
  number of line to look at
index (int)
  position to look at

Return:
  the word to the left of that position

Return Type:
  str

#### Editor.getWordRight

getWordRight(line, index)

Public method to get the word to the right of a position.

line (int)
  number of line to look at
index (int)
  position to look at

Return:
  the word to the right of that position

Return Type:
  str

#### Editor.gotoLastEditPosition

gotoLastEditPosition()

Public method to move the cursor to the last edit position.

#### Editor.gotoLine

gotoLine(line, pos=1, firstVisible=False, expand=False)

Public method to jump to the beginning of a line.

line (int)
  line number to go to
pos (int)
  position in line to go to
firstVisible (bool)
  flag indicating to make the line the first visible line
expand (bool)
  flag indicating to expand all folds

#### Editor.gotoMethodClass

gotoMethodClass(goUp=False)

Public method to go to the next Python method or class definition.

goUp (bool)
  flag indicating the move direction

#### Editor.gotoReferenceHandler

gotoReferenceHandler(referencesList)

Public method to handle a list of references to perform a goto.

referencesList (ReferenceItem)
  list of references for a 'goto' action

#### Editor.gotoSyntaxError

gotoSyntaxError()

Public slot to handle the 'Goto syntax error' context menu action.

#### Editor.handleMonospacedEnable

handleMonospacedEnable()

Public slot to handle the Use Monospaced Font context menu entry.

#### Editor.handleRenamed

handleRenamed(fn)

Public method to handle the editorRenamed signal.

fn (str)
  filename to be set for the editor

#### Editor.hasBookmarks

hasBookmarks()

Public method to check for the presence of bookmarks.

Return:
  flag indicating the presence of bookmarks

Return Type:
  bool

#### Editor.hasBreakpoints

hasBreakpoints()

Public method to check for the presence of breakpoints.

Return:
  flag indicating the presence of breakpoints

Return Type:
  bool

#### Editor.hasChangeMarkers

hasChangeMarkers()

Public method to determine, if this editor contains any change markers.

Return:
  flag indicating the presence of change markers

Return Type:
  bool

#### Editor.hasCoverageMarkers

hasCoverageMarkers()

Public method to test, if there are coverage markers.

Return:
  flag indicating the presence of coverage markers

Return Type:
  bool

#### Editor.hasMiniMenu

hasMiniMenu()

Public method to check the miniMenu flag.

Return:
  flag indicating a minimized context menu

Return Type:
  bool

#### Editor.hasSyntaxErrors

hasSyntaxErrors()

Public method to check for the presence of syntax errors.

Return:
  flag indicating the presence of syntax errors

Return Type:
  bool

#### Editor.hasTaskMarkers

hasTaskMarkers()

Public method to determine, if this editor contains any task markers.

Return:
  flag indicating the presence of task markers

Return Type:
  bool

#### Editor.hasWarnings

hasWarnings()

Public method to check for the presence of warnings.

Return:
  flag indicating the presence of warnings

Return Type:
  bool

#### Editor.highlight

highlight(line=None, error=False)

Public method to highlight [or de-highlight] a particular line.

line (int)
  line number to highlight
error (bool)
  flag indicating whether the error highlight should be used

#### Editor.highlightSearchSelection

highlightSearchSelection(startLine, startIndex, endLine, endIndex)

Public method to set a highlight for the selection at the start of a search.

startLine (int)
  line of the selection start
startIndex (int)
  index of the selection start
endLine (int)
  line of the selection end
endIndex (int)
  index of the selection end

#### Editor.highlightVisible

highlightVisible()

Public method to make sure that the highlight is visible.

#### Editor.indentLineOrSelection

indentLineOrSelection()

Public slot to indent the current line or current selection.

#### Editor.insertDocstring

insertDocstring()

Public method to generate and insert a docstring for the function under the cursor.

Note: This method is called via a keyboard shortcut or through the global 'Edit' menu.

#### Editor.isClone

isClone(editor)

Public method to test, if the given editor is a clone.

editor (Editor)
  reference to the cloned editor

Return:
  flag indicating a clone

Return Type:
  bool

#### Editor.isCythonFile

isCythonFile()

Public method to return a flag indicating a Cython file.

Return:
  flag indicating a Cython file

Return Type:
  bool

#### Editor.isJavascriptFile

isJavascriptFile()

Public method to return a flag indicating a Javascript file.

Return:
  flag indicating a Javascript file

Return Type:
  bool

#### Editor.isLastEditPositionAvailable

isLastEditPositionAvailable()

Public method to check, if a last edit position is available.

Return:
  flag indicating availability

Return Type:
  bool

#### Editor.isMicroPythonFile

isMicroPythonFile()

Public method to return a flag indicating a MicroPython file.

Return:
  flag indicating a MicroPython file

Return Type:
  bool

#### Editor.isProjectFile

isProjectFile()

Public method to check, if the file of the editor belongs to the current project.

Return:
  flag indicating a project file

Return Type:
  bool

#### Editor.isPy3File

isPy3File()

Public method to return a flag indicating a Python3 file.

Return:
  flag indicating a Python3 file

Return Type:
  bool

#### Editor.isPyFile

isPyFile()

Public method to return a flag indicating a Python (2 or 3) file.

Return:
  flag indicating a Python3 file

Return Type:
  bool

#### Editor.isRubyFile

isRubyFile()

Public method to return a flag indicating a Ruby file.

Return:
  flag indicating a Ruby file

Return Type:
  bool

#### Editor.isSpellCheckRegion

isSpellCheckRegion(pos)

Public method to check, if the given position is within a region, that should be spell checked.

For files with a configured full text file extension all regions will be regarded as to be checked. Depending on configuration, all unknown files (i.e. those without a file extension) will be checked fully as well.

pos (int)
  position to be checked

Return:
  flag indicating pos is in a spell check region

Return Type:
  bool

#### Editor.joinLines

joinLines()

Public slot to join the current line with the next one.

#### Editor.keyPressEvent

keyPressEvent(ev)

Protected method to handle the user input a key at a time.

ev (QKeyEvent)
  key event

#### Editor.loadFile

loadFile(fn, createIt=False, encoding="", noempty=False, isRemote=False)

Public method to load the text from a file.

fn (str)
  filename to read from
createIt (bool (optional))
  flag indicating the creation of a new file, if the given one doesn't exist (defaults to False)
encoding (str (optional))
  encoding to be used to read the file (defaults to "") (Note: this parameter overrides encoding detection)
noempty (bool (optional))
  flag indicating to not set an empty text (defaults to False)
isRemote (bool (optional))
  flag indicating a remote file (defaults to False)

#### Editor.macroDelete

macroDelete()

Public method to delete a macro.

#### Editor.macroLoad

macroLoad()

Public method to load a macro from a file.

#### Editor.macroRecordingStart

macroRecordingStart()

Public method to start macro recording.

#### Editor.macroRecordingStop

macroRecordingStop()

Public method to stop macro recording.

#### Editor.macroRun

macroRun()

Public method to execute a macro.

#### Editor.macroSave

macroSave()

Public method to save a macro to a file.

#### Editor.menuEditBreakpoint

menuEditBreakpoint(line=None)

Public slot to handle the 'Edit breakpoint' context menu action.

line (int)
  line number of the breakpoint to edit

#### Editor.menuNextBreakpoint

menuNextBreakpoint()

Public slot to handle the 'Next breakpoint' context menu action.

#### Editor.menuPreviousBreakpoint

menuPreviousBreakpoint()

Public slot to handle the 'Previous breakpoint' context menu action.

#### Editor.menuToggleBookmark

menuToggleBookmark()

Public slot to handle the 'Toggle bookmark' context menu action.

#### Editor.menuToggleBreakpoint

menuToggleBreakpoint()

Public slot to handle the 'Toggle breakpoint' context menu action.

#### Editor.mouseDoubleClickEvent

mouseDoubleClickEvent(evt)

Protected method to handle mouse double click events.

evt (QMouseEvent)
  reference to the mouse event

#### Editor.mousePressEvent

mousePressEvent(event)

Protected method to handle the mouse press event.

event (QMouseEvent)
  the mouse press event

#### Editor.mouseReleaseEvent

mouseReleaseEvent(evt)

Protected method calling a registered mouse click handler function.

evt (QMouseEvent)
  event object

#### Editor.newBreakpointWithProperties

newBreakpointWithProperties(line, properties)

Public method to set a new breakpoint and its properties.

line (int)
  line number of the breakpoint
properties (tuple of (str, bool, bool, int))
  properties for the breakpoint (condition, temporary flag, enabled flag, ignore count)

#### Editor.nextBookmark

nextBookmark()

Public slot to handle the 'Next bookmark' context menu action.

#### Editor.nextChange

nextChange()

Public slot to handle the 'Next change' context menu action.

#### Editor.nextTask

nextTask()

Public slot to handle the 'Next task' context menu action.

#### Editor.nextUncovered

nextUncovered()

Public slot to handle the 'Next uncovered' context menu action.

#### Editor.nextWarning

nextWarning()

Public slot to handle the 'Next warning' context menu action.

#### Editor.previousBookmark

previousBookmark()

Public slot to handle the 'Previous bookmark' context menu action.

#### Editor.previousChange

previousChange()

Public slot to handle the 'Previous change' context menu action.

#### Editor.previousTask

previousTask()

Public slot to handle the 'Previous task' context menu action.

#### Editor.previousUncovered

previousUncovered()

Public slot to handle the 'Previous uncovered' context menu action.

#### Editor.previousWarning

previousWarning()

Public slot to handle the 'Previous warning' context menu action.

#### Editor.printFile

printFile()

Public slot to print the text.

#### Editor.printPreviewFile

printPreviewFile()

Public slot to show a print preview of the text.

#### Editor.projectClosed

projectClosed()

Public slot to handle the closing of a project.

#### Editor.projectLexerAssociationsChanged

projectLexerAssociationsChanged()

Public slot to handle changes of the project lexer associations.

#### Editor.projectOpened

projectOpened()

Public slot to handle the opening of a project.

#### Editor.readFile

readFile(fn, createIt=False, encoding="", isRemote=False)

Public method to read the text from a file.

fn (str)
  filename to read from
createIt (bool (optional))
  flag indicating the creation of a new file, if the given one doesn't exist (defaults to False)
encoding (str (optional))
  encoding to be used to read the file (defaults to "") (Note: this parameter overrides encoding detection)
isRemote (bool (optional))
  flag indicating a remote file (defaults to False)

Return:
  tuple containing the file contents and the determine file encoding

Return Type:
  tuple of (str, str)

#### Editor.readSettings

readSettings()

Public slot to read the settings into our lexer.

#### Editor.recordModificationTime

recordModificationTime(filename="")

Public slot to record the modification time of our file.

filename (str (optional))
  name of the file to record the modification tome for (defaults to "")

#### Editor.redo

redo()

Public method to redo the last recorded change.

#### Editor.refresh

refresh()

Public slot to refresh the editor contents.

#### Editor.refreshCoverageAnnotations

refreshCoverageAnnotations()

Public method to refresh the code coverage annotations.

#### Editor.registerMouseHoverHelpFunction

registerMouseHoverHelpFunction(func)

Public method to register a mouse hover help function.

Note: Only one plugin should provide this function. Otherwise the last one wins.

func (func)
  function accepting a reference to the calling editor and the line and column position (zero based each)

#### Editor.reload

reload()

Public slot to reload the editor contents checking its modification state first.

#### Editor.removeCallTipHook

removeCallTipHook(key)

Public method to remove a previously registered calltip provider.

key (str)
  name of the provider

#### Editor.removeClone

removeClone(editor)

Public method to remove a clone from our list.

editor (Editor)
  reference to the cloned editor

#### Editor.removeCompletionListHook

removeCompletionListHook(key)

Public method to remove a previously registered completion list provider.

key (str)
  name of the provider

#### Editor.removeMouseClickHandler

removeMouseClickHandler(modifiers, button)

Public method to un-registered a mouse click handler.

modifiers (Qt.KeyboardModifiers)
  keyboard modifiers of the handler
button (Qt.MouseButton)
  mouse button of the handler

#### Editor.removeMouseClickHandlers

removeMouseClickHandlers(name)

Public method to un-registered all mouse click handlers of a plug-in.

name (str)
  name of the plug-in

#### Editor.resetDocstringGenerator

resetDocstringGenerator()

Public method to reset the current docstring generator.

#### Editor.resetOnlineChangeTraceInfo

resetOnlineChangeTraceInfo()

Public slot to reset the online change trace info.

#### Editor.resizeEvent

resizeEvent(evt)

Protected method handling resize events.

evt (QResizeEvent)
  reference to the resize event

#### Editor.revertToUnmodified

revertToUnmodified()

Public method to revert back to the last saved state.

#### Editor.saveFile

saveFile(saveas=False, path=None, remote=False)

Public method to save the text to a file.

saveas (bool (optional))
  flag indicating a 'save as' action (defaults to False)
path (str (optional))
  directory to save the file in (defaults to None)
remote (bool (optional))
  flag indicating to save as a remote file (defaults to False)

Return:
  flag indicating success

Return Type:
  bool

#### Editor.saveFileAs

saveFileAs(path=None, remote=False)

Public method to save a file with a new name.

path (str (optional))
  directory to save the file in (defaults to None)
remote (bool (optional))
  flag indicating to save as a remote file (defaults to False)

Return:
  tuple containing a success indicator and the name of the saved file

Return Type:
  tuple of (bool, str)

#### Editor.saveFileCopy

saveFileCopy(path=None)

Public method to save a copy of the file.

path (str)
  directory to save the file in

Return:
  flag indicating success

Return Type:
  bool

#### Editor.searchCurrentWordBackward

searchCurrentWordBackward()

Public slot to search the current word backward.

#### Editor.searchCurrentWordForward

searchCurrentWordForward()

Public slot to search the current word forward.

#### Editor.selectCurrentWord

selectCurrentWord()

Public method to select the current word.

#### Editor.selectWord

selectWord(line, index)

Public method to select the word at a position.

line (int)
  number of line to look at
index (int)
  position to look at

#### Editor.setAutoCompletionEnabled

setAutoCompletionEnabled(enable)

Public method to enable/disable autocompletion.

enable (bool)
  flag indicating the desired autocompletion status

#### Editor.setAutoReloadEnabled

setAutoReloadEnabled(enable)

Public slot to enable automatic reloading for this editor.

enable (bool)
  flag indicating the automatic reloading state

#### Editor.setAutoSpellChecking

setAutoSpellChecking()

Public method to set the automatic spell checking.

#### Editor.setCheckExternalModificationEnabled

setCheckExternalModificationEnabled(enable)

Public method to enable or disable the check for external modifications.

enable (bool)
  flag indicating the new enabled state

#### Editor.setFileName

setFileName(name)

Public method to set the file name of the current file.

name (str)
  name of the current file

#### Editor.setHighlight

setHighlight(startLine, startIndex, endLine, endIndex)

Public method to set a text highlight.

startLine (int)
  line of the highlight start
startIndex (int)
  index of the highlight start
endLine (int)
  line of the highlight end
endIndex (int)
  index of the highlight end

#### Editor.setIgnoreExternalModification

setIgnoreExternalModification(ignore)

Public slot to set ignore external modifications of the loaded file.

ignore (bool)
  flag indication to ignore external modifications

#### Editor.setLanguage

setLanguage(filename, initTextDisplay=True, propagate=True, pyname="")

Public method to set a lexer language.

filename (str)
  filename used to determine the associated lexer language
initTextDisplay (bool)
  flag indicating an initialization of the text display is required as well
propagate (bool)
  flag indicating to propagate the change
pyname (str)
  name of the pygments lexer to use

#### Editor.setMonospaced

setMonospaced(on)

Public method to set/reset a monospaced font.

on (bool)
  flag to indicate usage of a monospace font

#### Editor.setMouseClickHandler

setMouseClickHandler(name, modifiers, button, function)

Public method to set a mouse click handler.

name (str)
  name of the plug-in (or 'internal') setting this handler
modifiers (Qt.KeyboardModifiers or int)
  keyboard modifiers of the handler
button (Qt.MouseButton or int)
  mouse button of the handler
function (func)
  handler function

Return:
  flag indicating success

Return Type:
  bool

#### Editor.setNoName

setNoName(noName)

Public method to set the display string for an unnamed editor.

noName (str)
  display string for this unnamed editor

#### Editor.setSearchIndicator

setSearchIndicator(startPos, indicLength)

Public method to set a search indicator for the given range.

startPos (int)
  start position of the indicator
indicLength (int)
  length of the indicator

#### Editor.setSharedEditStatus

setSharedEditStatus(status)

Public method to set the editor's shared edit status.

status (SharedEditStatus)
  shared edit status

#### Editor.setSpellingForProject

setSpellingForProject()

Public method to set the spell checking options for files belonging to the current project.

#### Editor.shortenEmptyLines

shortenEmptyLines()

Public slot to compress lines consisting solely of whitespace characters.

#### Editor.showMouseHoverHelpData

showMouseHoverHelpData(line, index, data)

Public method to show the mouse hover help data.

line (int)
  line of mouse cursor position
index (int)
  column of mouse cursor position
data (str)
  information text to be shown

#### Editor.smartIndentLineOrSelection

smartIndentLineOrSelection()

Public slot to indent current line smartly.

#### Editor.sortLines

sortLines()

Public slot to sort the lines spanned by a rectangular selection.

#### Editor.streamCommentLineOrSelection

streamCommentLineOrSelection()

Public slot to stream comment the current line or current selection.

#### Editor.streamUncommentLineOrSelection

streamUncommentLineOrSelection()

Public slot to stream uncomment the current line or current selection.

#### Editor.toggleBookmark

toggleBookmark(line)

Public method to toggle a bookmark.

line (int)
  line number of the bookmark

#### Editor.toggleComment

toggleComment()

Public slot to toggle a block or stream comment.

If the lexer supports a block comment, that is used for toggling the comment. Otherwise a stream comment is used if that is supported. If none of these are supported, the request is ignored silently.

#### Editor.toggleCurrentFold

toggleCurrentFold()

Public slot to toggle the fold containing the current line.

#### Editor.toggleSyntaxError

toggleSyntaxError(line, index, setError, msg="", show=False)

Public method to toggle a syntax error indicator.

line (int)
  line number of the syntax error
index (int)
  index number of the syntax error
setError (bool)
  flag indicating if the error marker should be set or deleted
msg (str)
  error message
show (bool)
  flag indicating to set the cursor to the error position

#### Editor.toggleWarning

toggleWarning(line, _col, setWarning, msg="", warningType=EditorWarningKind.Code, )

Public method to toggle a warning indicator.

Note: This method is used to set pyflakes and code style warnings.

line (int)
  line number of the warning
_col (int)
  column of the warning (unused)
setWarning (bool)
  flag indicating if the warning marker should be set or deleted
msg (str)
  warning message
warningType (EditorWarningKind)
  type of warning message

#### Editor.uncommentLineOrSelection

uncommentLineOrSelection()

Public slot to uncomment the current line or current selection.

If the lexer supports a block comment, that is used for uncommenting. Otherwise a stream comment is used if that is supported. If none of these are supported, the request is ignored silently.

#### Editor.undo

undo()

Public method to undo the last recorded change.

#### Editor.unindentLineOrSelection

unindentLineOrSelection()

Public slot to unindent the current line or current selection.

#### Editor.unregisterMouseHoverHelpFunction

unregisterMouseHoverHelpFunction(func)

Public method to unregister a mouse hover help function.

func (func)
  function accepting a reference to the calling editor and the line and column position (zero based each)

#### Editor.updateMarkerMap

updateMarkerMap()

Public method to initiate an update of the marker map.

#### Editor.updateReadOnly

updateReadOnly(bForce=True)

Public method to update the readOnly information for this editor.

If bForce is True, then updates everything regardless if the attributes have actually changed, such as during initialization time. A signal is emitted after the caption change.

bForce (bool)
  True to force change, False to only update and emit signal if there was an attribute change.

#### Editor.viewportEvent

viewportEvent(evt)

Protected method handling event of the viewport.

evt (QEvent)
  reference to the event

Return:
  flag indiating that the event was handled

Return Type:
  bool

#### Editor.wheelEvent

wheelEvent(evt)

Protected method to handle wheel events.

evt (QWheelEvent)
  reference to the wheel event

#### Editor.writeFile

writeFile(fn, backup=True)

Public method to write the text to a file.

fn (str)
  filename to write to
backup (bool)
  flag indicating to save a backup

Return:
  flag indicating success

Return Type:
  bool

Up

## EditorIconId

Class defining the completion icon IDs.

### Derived from

enum.IntEnum

### Class Attributes

Attribute
AttributePrivate
AttributeProtected
Class
ClassPrivate
ClassProtected
Enum
FromDocument
Keywords
Method
MethodPrivate
MethodProtected
Module
TemplateImage

### Class Methods

None

### Methods

None

### Static Methods

None

Up

## EditorWarningKind

Class defining the kind of warnings supported by the Editor class.

### Derived from

enum.Enum

### Class Attributes

Code
Error
Info
Python
Style

### Class Methods

None

### Methods

None

### Static Methods

None

Up